package com.bean.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 学生成绩表实体类
 */
public class StudentScore implements Serializable {
    private Integer id;//纯数字主键
    private Long studentId;
    private Long classesId;
    private Integer subjectId;
    private Integer teacherId;
    private Double score;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date testTime;

    @Override
    public String toString() {
        return "StudentScore{" +
                "id=" + id +
                ", studentId=" + studentId +
                ", classesId=" + classesId +
                ", subjectId=" + subjectId +
                ", teacherId=" + teacherId +
                ", score=" + score +
                ", testTime=" + testTime +
                '}';
    }

    public StudentScore() {
    }

    public StudentScore(Integer teacherId) {
        this.teacherId = teacherId;
    }

    public StudentScore(Long studentId) {
        this.studentId = studentId;
    }
    public StudentScore(Integer subjectId, Double score, Date testTime) {
        this.subjectId = subjectId;
        this.score = score;
        this.testTime = testTime;
    }

    public StudentScore(Long studentId, Long classesId, Integer subjectId, Integer teacherId, Double score, Date testTime) {
        this.studentId = studentId;
        this.classesId = classesId;
        this.subjectId = subjectId;
        this.teacherId = teacherId;
        this.score = score;
        this.testTime = testTime;
    }

    public StudentScore(Integer id, Long studentId, Long classesId, Integer subjectId, Integer teacherId, Double score, Date testTime) {
        this.id = id;
        this.studentId = studentId;
        this.classesId = classesId;
        this.subjectId = subjectId;
        this.teacherId = teacherId;
        this.score = score;
        this.testTime = testTime;
    }

    public Long getClassesId() {
        return classesId;
    }

    public Integer getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }

    public void setClassesId(Long classesId) {
        this.classesId = classesId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getStudentId() {
        return studentId;
    }

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }

    public Integer getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(Integer subjectId) {
        this.subjectId = subjectId;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public Date getTestTime() {
        return testTime;
    }

    public void setTestTime(Date testTime) {
        this.testTime = testTime;
    }
}
